package com.atguigu.spzx.order.service;

import com.atguigu.spzx.model.dto.order.OrderInfoDto;
import com.atguigu.spzx.model.entity.order.OrderInfo;
import com.atguigu.spzx.model.vo.h5.TradeVo;

/**
 * @author Mahone
 */
public interface OrderInfoService {
    /**
     * 确认下单
     * @return
     */
    TradeVo trade();

    /**
     * 提交订单
     * @param orderInfoDto
     * @return
     */
    Long submitOrder(OrderInfoDto orderInfoDto);

    /**
     * 获取订单信息
     * @param orderId
     * @return
     */
    OrderInfo getOrderInfo(Long orderId);

    /**
     * 立即购买
     * @param skuId
     * @return
     */
    TradeVo buy(Long skuId);

    /**
     * 获取订单信息
     * @param orderNo
     * @return
     */
    OrderInfo getOrderInfoByOrderNo(Long orderNo);
}
